package com.briup.day14;

import java.io.FileInputStream;
import java.io.IOException;

public class Homework {
    public static void main(String[] args) {
        try (FileInputStream fis = new FileInputStream("a.txt")) {
            // 调用skip方法，跳过5个字节数的内容
            long skip = fis.skip(5);
            // 再读取数据
            byte[] bytes = fis.readAllBytes();
            System.out.println(new String(bytes));
        } catch (IOException e) {
            System.err.println("出现IO异常:" + e.getMessage());
        }
    }
}
